import Vue from 'vue'
import App from './App'
import store from './store'
import gh from './common/promise'
Vue.config.productionTip = false
App.mpType = 'app'

Vue.prototype.$gh = gh
// 重写打印方法
Vue.prototype.$print = (obj, type) => {
    type = type || "log";
    try {
        const log = JSON.parse(JSON.stringify(obj));
        console[type](log)
    } catch (error) {
        console.log(obj);
    }
}

const app = new Vue({
    ...App,
    store
})
app.$mount()
